<?php

namespace Projet\BackOfficeBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Commande
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Projet\BackOfficeBundle\Entity\CommandeRepository")
 */
class Commande
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float
     *
     * @ORM\Column(name="prixTotalHt", type="float")
     */
    private $prixTotalHt;

    /**
     * @var float
     *
     * @ORM\Column(name="remise", type="float")
     */
    private $remise;

    /**
     * @var integer
     *
     * @ORM\Column(name="idUser", type="integer")
     */
    private $idUser;


    /**
     *
     *
     * @ORM\ManyToOne(targetEntity="Projet\BackOfficeBundle\Entity\Utilsateur",inversedBy="commandes")
     */
    private $user;
    
    
    


    /**
     *
     *
     * @ORM\OneToMany(targetEntity="Projet\BackOfficeBundle\Entity\LigneCommande",mappedBy="commande")
     */
    private $lignecommandes;
    



    public function getLigneCommandes()
    {
        return $this->lignecommandes;
    }
    public function setLigneCommandes($lignecommandes)
    {
        $this->lignecommandes = $lignecommandes;
    }





    public function getUser()
    {
        return $this->user;
    }
    public function setUser($user)
    {
        $this->user = $user;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set prixTotalHt
     *
     * @param float $prixTotalHt
     * @return Commande
     */
    public function setPrixTotalHt($prixTotalHt)
    {
        $this->prixTotalHt = $prixTotalHt;
    
        return $this;
    }

    /**
     * Get prixTotalHt
     *
     * @return float 
     */
    public function getPrixTotalHt()
    {
        return $this->prixTotalHt;
    }

    /**
     * Set remise
     *
     * @param float $remise
     * @return Commande
     */
    public function setRemise($remise)
    {
        $this->remise = $remise;
    
        return $this;
    }

    /**
     * Get remise
     *
     * @return float 
     */
    public function getRemise()
    {
        return $this->remise;
    }

    /**
     * Set idUser
     *
     * @param integer $idUser
     * @return Commande
     */
    public function setIdUser($idUser)
    {
        $this->idUser = $idUser;
    
        return $this;
    }

    /**
     * Get idUser
     *
     * @return integer 
     */
    public function getIdUser()
    {
        return $this->idUser;
    }
}
